<!DOCTYPE html>
<html>
    <head>
        <title>360湘江世纪城</title>
        <#include "controls/public_header.ftl">
		<script type="text/javascript" src="${model._contextPath}/web/resources/lib/utils/ajaxutil.js"></script>
        <script type="text/javascript" src="${model._contextPath}/web/resources/js/cart.js"></script>
        <script type="text/javascript">
		$(function(){
			PubOPT.jsEventLoad(pageJsEvent);
		});
		
		function pageJsEvent() {
			$('#categorys').hover(function(){
				$(this).children('.mc').toggle();
			});
			$(".item").hover(function(){
				$(this).toggleClass('hover');
			});
		}
		</script>
    </head>
    <body>
		<div id="container">
			<#include "controls/header.ftl">
			<div id="main">
			    <!-- 导航-->
				<div class="Lay_1" style="height:32px">
					<div class="col_2" id="categorys">
						<div class="title_1">全部商品分类</div>
						<div class="mc">
							<#include "controls/categories.ftl">
						</div>
					</div>
					<div class="col_3">
						<#include "controls/top_nav.ftl">
					</div>
				</div>
				<!-- 我的购物车-->
				<div class="Lay_6">
					<#if model.shops?exists && model.shops?has_content && (model.shops?size>0) >
					<div class="gwcbt"><!-- 现在<a href="${model._contextPath}/p100012.html"><img src="${model._contextPath}/web/resources/images/gwc_03.jpg" width="52" height="21" style="vertical-align:top;"></a>，您购物车中的商品将永久保存--></div>
					<div class="gwcnr">
						<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
							<tr>
								<td width="9%" height="35" align="center" valign="middle" class="nrbt"><input type="checkbox" name="allall" value="allall1">全选</td>
								<td colspan="2" align="center" valign="middle" class="nrbt">商品</td>
								<td width="12%" align="center" valign="middle" class="nrbt">单价(元)</td>
								<td width="12%" align="center" valign="middle" class="nrbt">数量</td>
								<td width="11%" align="center" valign="middle" class="nrbt">金额(元)</td>
								<td width="12%" align="center" valign="middle" class="nrbt">操作</td>
							</tr>
							<#list model.shops as shop>
							<tr dp="${shop.shop_id}">
						    	<td height="40" colspan="7" align="center" valign="middle" class="nrbt2">
									<table width="96%" border="0" align="center" cellspacing="0">
										<tr>
											<td width="2%" align="left" valign="middle">
												<span class="nrbt">
													<input type="checkbox" name="all" value="${shop.shop_id}">
												</span>
											</td>
											<td width="30%" align="left" valign="middle" class="text7">店辅：<span class="_shop_name" dp="${shop.shop_id}"><a href="${model._contextPath}/p100009.html?id=${shop.shop_id}" target="_blank">${shop.shop_name}</a></span></td>
											<td width="54%" align="left" valign="middle">营业时间：${shop.business_start_hours}-${shop.business_end_hours}&nbsp;&nbsp;&nbsp;&nbsp;送货最低价：<span class="text8"><strong>￥<span class="_lowest_price" dp="${shop.shop_id}">${shop.lowest_price}</strong></span></td>
											<td width="14%" align="right" valign="middle">店辅总计：<span class="text8"><strong id="${shop.shop_id}_price">￥<span class="_price" dp="${shop.shop_id}">0</span></strong></span></td>
										</tr>
									</table>
								</td>
							</tr>
								<#list model.goodses as goods>
									<#if (goods.shop_id == shop.shop_id)>
									<tr code="${goods.goods_id}" dp="${shop.shop_id}">
										<td align="center" valign="middle" class="nrbt3">
											<span class="nrbt">
												<input type="checkbox" name="${shop.shop_id}" value="${goods_index}" code="${goods.goods_id}">
												<input type="hidden" id="${shop.shop_id}_${goods_index}" value="${goods.goods_price?number?string("0.##")}">
											</span>
										</td>
										<td width="8%" height="70" align="center" valign="middle" class="nrbt3"><a href="${model._contextPath}/p100010.html?id=${goods.goods_id}" target="_blank"><img src="${model._contextPath}${goods.small_relative_path}" width="50" height="50" class="box"></a></td>
										<td width="36%" align="left" valign="middle" class="text10 nrbt3"> <a href="${model._contextPath}/p100010.html?id=${goods.goods_id}" target="_blank">${goods.goods_name}</a> </td>
										<td align="center" valign="middle" class="nrbt3">${goods.goods_price?number?string("0.##")}</td>
										<td align="center" valign="middle" class="nrbt3"><span id="btn_lower_${goods_index}" class="kuang1" style="cursor:pointer">-</span><span class="kuang"><input id="num_${goods_index}" code="${goods.goods_id}" name="textfield" type="text" class="kuanga" value="${goods.num}" onkeyup="this.value=this.value.replace(/\D/g,'');changeNum(this);" onafterpaste="this.value=this.value.replace(/\D/g,'');changeNum(this);"/></span><span id="btn_add_${goods_index}" class="kuang2" style="cursor:pointer">+</span></td>
										<td align="center" valign="middle" class="nrbt3"><span id="sum_${goods.goods_id}" class="text8"></span></td>
										<td align="center" valign="middle" class="text10 nrbt3"><a href="javascript:void(0)" class="_del" code="${goods.goods_id}">删除</a></td>
									</tr>
									</#if>
								</#list>
							</#list>
							<tr>
								<td height="54" colspan="7" align="center" valign="middle" class="nrbt">
									<table width="96%" border="0" align="center" cellspacing="0">
										<tr>
											<td width="5%" align="left" valign="middle"><input type="checkbox" name="allall" value="allall2">全选</td>
											<td width="58%" align="left" valign="middle" class="text7">&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" class="_del_select">删除</a>&nbsp;&nbsp;&nbsp;&nbsp;批量移入收藏夹&nbsp;&nbsp;&nbsp;&nbsp;分享</td>
											<td width="33%" align="left" valign="middle">已选商品<span class="text8"><strong id="cart_count">0</strong></span>件 <strong>总计（不含运费）：<span id="cart_price" class="btjg">0</span></strong></td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div class="nran">
						<div class="an1"><img src="${model._contextPath}/web/resources/images/gwc_14.jpg"></div>
						<div class="an2"><img id="account" style="cursor:pointer" src="${model._contextPath}/web/resources/images/gwc_17.jpg" alt="去结算" width="135" height="36"></div>
					</div>
					</#if>
				</div>
			</div> 
			<div width="100%" height="127"> 
				<#include "controls/footer.ftl">
			</div>
		</div>
    </body>
</html>